import React from 'react'

export default function Logfilter(props) {
  const changeHandler = (e) => {
      props.onYearChange(+e.target.value)
  };
  return <div>
      年份：<select onChange={changeHandler} value={props.selectYear}>
        <option value="2024">2024</option>
        <option value="2023">2023</option>
        <option value="2022">2022</option>
        <option value="2021">2021</option>
        <option value="2020">2020</option>
      </select>
  </div>
}
